Fix detection of OpenGL 3.3 core GL_ARB_timer_query.
authorDavid Hogan <david.q.hogan@gmail.com>
Wed, 12 Feb 2020 20:55:59 +0000 (07:55 +1100)
committerDavid Hogan <david.q.hogan@gmail.com>
Thu, 13 Feb 2020 18:41:01 +0000 (05:41 +1100)
commit0969d06925a791ed8faee94e067707a9830bba49
tree851d1ec0e214a04e56041c70152bbf790ac53fa2
parentc4111dad314848fee057344026e87dfa64755bb6
Fix detection of OpenGL 3.3 core GL_ARB_timer_query.

Some systems (notably macOS) will not allow enumeration of an extension that has been promoted to core OpenGL for context in use. This change assumes that GL_ARB_timer_query is available on OpenGL 3.3+.

I could not find definitive information on whether GL_ARB_debug_output or GL_KHR_debug have been added to core. Other extensions in use were addressed by https://gitlab.gnome.org/GNOME/gtk/merge_requests/1422 .
gsk/gl/gskglprofiler.c